﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using m_pricelist._DAL_;

namespace Functions_Products
{
    class MockRepository
    {
        ProductsData prd = new ProductsData();

        public DataSet MockGetSprtItems()
        {
            DataSet ds = new DataSet();
            string strProType = "Ice Dosing System";
            string strProduct = "Ice Dosing System";
            ds = prd.getSprItemsData(strProType,strProduct);

            #region Mock getSprItemsData
            // DataTable table = new DataTable();

            //table.Columns.Add("ITEM_NUMBER",typeof(string));
            //table.Columns.Add("ITEM_Name",typeof(string));
            //table.Columns.Add("PRICE", typeof(string));
            //table.Columns.Add("UNITS", typeof(string));
            //table.Columns.Add("COMMENT", typeof(string));

            //table.Rows.Add("hop-pice-0400l30ca1", "400 l Ice-dosing system", "56.083", "", "400l Ice tub,infeed conveyor, divider, 2x10l hoppers, M3000, barcode reader");
            //table.Rows.Add("hop-pice-0540l30ca1", "540 l Ice-dosing system", "56.719", "", "540l Ice tub,infeed conveyor, divider, 2x10l hoppers, M3000, barcode reader");
            //table.Rows.Add("hop-pice-0720l30ca1", "720 l Ice-dosing system", "57.333", "", "720l Ice tub,infeed conveyor, divider, 2x10l hoppers, M3000 , barcode reader");

            //ds.Tables.Add(table);
            #endregion

            return ds;
        }

        public DataSet MockGetD_Appendix()
        {
            DataSet ds = new DataSet();
            ds = prd.getD_Appendix();
            return ds;
        }
    }
}
